package com.sxkj.web.config;

import com.sxkj.common.pay.xypay.SwiftpassConfig;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


/**
 * @author Zhang Xingliang
 */
@Configuration
@PropertySource(value = {"classpath:xy-pay.yml"},encoding = "utf-8")
@ConfigurationProperties(prefix = "xypay")
@Data
public class XyPayConfig extends SwiftpassConfig {

    @Value("${xy-mch_id}")
    private String mchId;

    @Value("${xy-version}")
    private String version;

    @Value("${xy-charset}")
    private String charset;

    @Value("${xy-sign_type}")
    private String signType;

    @Value("${xy-mchPrivateKey}")
    private String mchPrivateKey;

    @Value("${xy-platPublicKey}")
    private String platPublicKey;

    @Value("${xy-mch_create_ip}")
    private String mchCreateIp;

    @Value("${xy-key}")
    private String key;

    @Value("${xy-body}")
    private String body;

    @Value("${xy-notify_url}")
    private String notifyUrl;

/*    @Value("${xy-gatewayUrl}")
    private String gatewayUrl;*/

}
